<div class="box-body">
    <form class="layui-form" action="{:url('/fac/bank/save')}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">银行名称</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="银行名称"  name="name" {if isset($bank)}value="{$bank.name}"{/if}  class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">银行账号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="银行账号"  name="account" {if isset($bank)}value="{$bank.account}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">开户名</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="开户名"  name="user" {if isset($bank)}value="{$bank.user}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开户地址</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="开户地址"  name="address" {if isset($bank)}value="{$bank.address}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">英文地址</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="银行英文地址"  name="address_en" {if isset($bank)}value="{$bank.address_en}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">银行代码</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="银行英文地址"  name="code" {if isset($bank)}value="{$bank.code}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">绑定手机</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="绑定手机"  name="mobile" {if isset($bank)}value="{$bank.mobile}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" autocomplete="off" placeholder="排序"  name="sort" {if isset($bank)}value="{$bank.sort}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" value="1" {if !isset($bank) || $bank.status=='1'}checked{/if} lay-skin="switch">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">默认</label>
            <div class="layui-input-block">
                <input type="checkbox" name="is_default" value="1" {if isset($bank) && $bank.is_default=='1'}checked{/if} lay-skin="switch">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="备注"  name="remark" {if isset($bank)}value="{$bank.remark}"{/if} class="layui-input" />
            </div>
        </div>
        {if isset($bank)}
        <input type="hidden" name="bank_id" value="{$bank.bank_id}">
        {/if}
    </form>
</div>